extern crate kproxy;

use chrono::{DateTime, Utc};

#[test]
fn date_tests(){
    let now: DateTime<Utc> = Utc::now();
    let last_mem_day = now.format("%Y-%m-%d").to_string();
    let timestamp = now.timestamp();
    println!("time is : {}",last_mem_day);
    println!("timestamp is : {}",timestamp);
    let now = Utc::now().timestamp();
    let pass = now - 1577808000;
    let upto_now = pass/86400;
    println!("pass day is : {}",upto_now);
}